package com.peza.bikelog.gui.data;

import java.util.Collection;

import com.peza.bikelog.common.domain.LogEntry;
import com.vaadin.data.util.BeanItemContainer;

public class EntryContainer extends BeanItemContainer<LogEntry>{

	
	public EntryContainer(){
		super(LogEntry.class);
		setup();
	}
	
	public EntryContainer(Collection<? extends LogEntry> collection){
		super(LogEntry.class, collection);
		setup();
	}
	
	private void setup(){
		this.addNestedContainerProperty("fitnessData.zone");
		this.addNestedContainerProperty("fitnessData.averageHr");
		this.addNestedContainerProperty("fitnessData.maxHr");
		this.addNestedContainerProperty("fitnessData.recPct");
		this.addNestedContainerProperty("fitnessData.d1Pct");
		this.addNestedContainerProperty("fitnessData.d2Pct");
		this.addNestedContainerProperty("fitnessData.d3Pct");
		this.addNestedContainerProperty("fitnessData.maxPct");
		this.addNestedContainerProperty("fitnessData.kcal");
		

	}

	private static final long serialVersionUID = 1L;

	
	
	

}
